home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / GXErrors.p < prev    next >
Text File  |  1996-05-01  |  26KB  |  672 lines

  1. {
  2.      File:        GXErrors.p
  3.  
  4.      Contains:    QuickDraw GX error constants and debugging routines
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT GXErrors;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __GXERRORS__}
  28. {$SETC __GXERRORS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC GXErrorsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __CONDITIONALMACROS__}
  35. {$I ConditionalMacros.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __MIXEDMODE__}
  38. {$I MixedMode.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __GXTYPES__}
  41. {$I GXTypes.p}
  42. {$ENDC}
  43.  
  44. {$PUSH}
  45. {$ALIGN MAC68K}
  46. {$LibExport+}
  47.  
  48.  
  49. CONST
  50.     gxFirstSystemError            = -27999;                        {  0xffff92a1  }
  51.     gxFirstFatalError            = -27999;
  52.     gxLastFatalError            = -27951;
  53.     gxFirstNonfatalError        = -27950;
  54.     gxFirstFontScalerError        = -27900;
  55.     gxLastFontScalerError        = -27851;
  56.     gxFirstParameterError        = -27850;
  57.     gxFirstImplementationLimitError = -27800;
  58.     gxFirstSystemDebuggingError    = -27700;
  59.     gxLastSystemError            = -27000;                        {  0xffff9688  }
  60.     gxFirstLibraryError            = 1048576;                        {  0x00100000  }
  61.     gxLastLibraryError            = 2097151;                        {  0x001fffff  }
  62.     gxFirstAppError                = 2097152;                        {  0x00200000  }
  63.     gxLastAppError                = 4194303;                        {  0x003fffff  }
  64.     gxFirstSystemWarning        = -26999;                        {  0xffff9689  }
  65.     gxFirstResultOutOfRangeWarning = -26950;
  66.     gxFirstParameterOutOfRangeWarning = -26900;
  67.     gxFirstFontScalerWarning    = -26850;
  68.     gxFirstSystemDebuggingWarning = -26700;
  69.     gxLastSystemWarning            = -26000;                        {  0xffff9a70  }
  70.     gxFirstLibraryWarning        = 4194304;                        {  0x00400000  }
  71.     gxLastLibraryWarning        = 5242879;                        {  0x004fffff  }
  72.     gxFirstAppWarning            = 5242880;                        {  0x00500000  }
  73.     gxLastAppWarning            = 7340031;                        {  0x006fffff  }
  74.     gxFirstSystemNotice            = -25999;                        {  0xffff9a71  }
  75.     gxLastSystemNotice            = -25500;                        {  0xffff9c64  }
  76.     gxFirstLibraryNotice        = 7340032;                        {  0x00700000  }
  77.     gxLastLibraryNotice            = 7602175;                        {  0x0073ffff  }
  78.     gxFirstAppNotice            = 7602176;                        {  0x00740000  }
  79.     gxLastAppNotice                = 8388607;                        {  0x007fffff  }
  80.  
  81.                                                                 {  truly fatal errors  }
  82.     out_of_memory                = -27999;
  83.     internal_fatal_error        = -27998;
  84.     no_outline_font_found        = -27997;
  85.     not_enough_memory_for_graphics_client_heap = -27996;
  86.     could_not_create_backing_store = -27995;                    {  internal errors  }
  87.     internal_error                = -27950;
  88.     internal_font_error            = -27949;
  89.     internal_layout_error        = -27948;                        {  recoverable errors  }
  90.     could_not_dispose_backing_store = -27946;
  91.     unflattening_interrupted_by_client = -27945;                {  font manager errors  }
  92.     font_cannot_be_changed        = -27944;
  93.     illegal_font_parameter        = -27943;                        {  gxFont scaler errors  }
  94.     null_font_scaler_context    = -27900;
  95.     null_font_scaler_input        = -27899;
  96.     invalid_font_scaler_context    = -27898;
  97.     invalid_font_scaler_input    = -27897;
  98.     invalid_font_scaler_font_data = -27896;
  99.     font_scaler_newblock_failed    = -27895;
  100.     font_scaler_getfonttable_failed = -27894;
  101.     font_scaler_bitmap_allocation_failed = -27893;
  102.     font_scaler_outline_allocation_failed = -27892;
  103.     required_font_scaler_table_missing = -27891;
  104.     unsupported_font_scaler_outline_format = -27890;
  105.     unsupported_font_scaler_stream_format = -27889;
  106.     unsupported_font_scaler_font_format = -27888;
  107.     font_scaler_hinting_error    = -27887;
  108.     font_scaler_rasterizer_error = -27886;
  109.     font_scaler_internal_error    = -27885;
  110.     font_scaler_invalid_matrix    = -27884;
  111.     font_scaler_fixed_overflow    = -27883;
  112.     font_scaler_api_version_mismatch = -27882;
  113.     font_scaler_streaming_aborted = -27881;
  114.     unknown_font_scaler_error    = -27880;                        {  bad parameters  }
  115.     parameter_is_nil            = -27850;
  116.     shape_is_nil                = -27849;
  117.     style_is_nil                = -27848;
  118.     transform_is_nil            = -27847;
  119.     ink_is_nil                    = -27846;
  120.     transferMode_is_nil            = -27845;
  121.     color_is_nil                = -27844;
  122.     colorProfile_is_nil            = -27843;
  123.     colorSet_is_nil                = -27842;
  124.     spoolProcedure_is_nil        = -27841;
  125.     tag_is_nil                    = -27840;
  126.     type_is_nil                    = -27839;
  127.     mapping_is_nil                = -27838;
  128.     invalid_viewDevice_reference = -27837;
  129.     invalid_viewGroup_reference    = -27836;
  130.     invalid_viewPort_reference    = -27835;                        {  implementation limits, these should be right before the debugging errors  }
  131.     number_of_contours_exceeds_implementation_limit = -27800;
  132.     number_of_points_exceeds_implementation_limit = -27799;
  133.     size_of_polygon_exceeds_implementation_limit = -27798;
  134.     size_of_path_exceeds_implementation_limit = -27797;
  135.     size_of_text_exceeds_implementation_limit = -27796;
  136.     size_of_bitmap_exceeds_implementation_limit = -27795;
  137.     number_of_colors_exceeds_implementation_limit = -27794;
  138.     procedure_not_reentrant        = -27793;
  139.  
  140.                                                                 {  internal debugging errors  }
  141.     functionality_unimplemented    = -27700;
  142.     clip_to_frame_shape_unimplemented = -27699;                    {  font parameter debugging errors  }
  143.     illegal_font_storage_type    = -27698;
  144.     illegal_font_storage_reference = -27697;
  145.     illegal_font_attributes        = -27696;                        {  parameter debugging errors  }
  146.     parameter_out_of_range        = -27695;
  147.     inconsistent_parameters        = -27694;
  148.     index_is_less_than_zero        = -27693;
  149.     index_is_less_than_one        = -27692;
  150.     count_is_less_than_zero        = -27691;
  151.     count_is_less_than_one        = -27690;
  152.     contour_is_less_than_zero    = -27689;
  153.     length_is_less_than_zero    = -27688;
  154.     invalid_client_reference    = -27687;
  155.     invalid_graphics_heap_start_pointer = -27686;
  156.     invalid_nongraphic_globals_pointer = -27685;
  157.     colorSpace_out_of_range        = -27684;
  158.     pattern_lattice_out_of_range = -27683;
  159.     frequency_parameter_out_of_range = -27682;
  160.     tinting_parameter_out_of_range = -27681;
  161.     method_parameter_out_of_range = -27680;
  162.     space_may_not_be_indexed    = -27679;
  163.     glyph_index_too_small        = -27678;
  164.     no_glyphs_added_to_font        = -27677;
  165.     glyph_not_added_to_font        = -27676;
  166.     point_does_not_intersect_bitmap = -27675;
  167.     required_font_table_not_present = -27674;
  168.     unknown_font_table_format    = -27673;                        {  the styles encoding is not present in the font  }
  169.     shapeFill_not_allowed        = -27672;
  170.     inverseFill_face_must_set_clipLayer_flag = -27671;
  171.     invalid_transferMode_colorSpace = -27670;
  172.     colorProfile_must_be_nil    = -27669;
  173.     bitmap_pixel_size_must_be_1    = -27668;
  174.     empty_shape_not_allowed        = -27667;
  175.     ignorePlatformShape_not_allowed = -27666;
  176.     nil_style_in_glyph_not_allowed = -27665;
  177.     complex_glyph_style_not_allowed = -27664;
  178.     invalid_mapping                = -27663;
  179.     cannot_set_item_shapes_to_nil = -27662;
  180.     cannot_use_original_item_shapes_when_growing_picture = -27661;
  181.     cannot_add_unspecified_new_glyphs = -27660;
  182.     cannot_dispose_locked_tag    = -27659;
  183.     cannot_dispose_locked_shape    = -27658;                        {  restricted access  }
  184.     shape_access_not_allowed    = -27657;
  185.     colorSet_access_restricted    = -27656;
  186.     colorProfile_access_restricted = -27655;
  187.     tag_access_restricted        = -27654;
  188.     viewDevice_access_restricted = -27653;
  189.     graphic_type_does_not_have_a_structure = -27652;
  190.     style_run_array_does_not_match_number_of_characters = -27651;
  191.     rectangles_cannot_be_inserted_into = -27650;
  192.     unknown_graphics_heap        = -27649;
  193.     graphics_routine_selector_is_obsolete = -27648;
  194.     cannot_set_graphics_client_memory_without_setting_size = -27647;
  195.     graphics_client_memory_too_small = -27646;
  196.     graphics_client_memory_is_already_allocated = -27645;
  197.     viewPort_is_a_window        = -27644;                        {  wrong type/bad reference  }
  198.     illegal_type_for_shape        = -27643;
  199.     shape_does_not_contain_a_bitmap = -27642;
  200.     shape_does_not_contain_text    = -27641;
  201.     picture_expected            = -27640;
  202.     bitmap_is_not_resizable        = -27639;
  203.     shape_may_not_be_a_bitmap    = -27638;
  204.     shape_may_not_be_a_picture    = -27637;
  205.     graphic_type_does_not_contain_points = -27636;
  206.     graphic_type_does_not_have_multiple_contours = -27635;
  207.     graphic_type_cannot_be_mapped = -27634;
  208.     graphic_type_cannot_be_moved = -27633;
  209.     graphic_type_cannot_be_scaled = -27632;
  210.     graphic_type_cannot_be_rotated = -27631;
  211.     graphic_type_cannot_be_skewed = -27630;
  212.     graphic_type_cannot_be_reset = -27629;
  213.     graphic_type_cannot_be_dashed = -27628;
  214.     graphic_type_cannot_be_reduced = -27627;
  215.     graphic_type_cannot_be_inset = -27626;
  216.     shape_cannot_be_inverted    = -27625;
  217.     shape_does_not_have_area    = -27624;
  218.     shape_does_not_have_length    = -27623;
  219.     first_glyph_advance_must_be_absolute = -27622;
  220.     picture_cannot_contain_itself = -27621;
  221.     viewPort_cannot_contain_itself = -27620;
  222.     cannot_set_unique_items_attribute_when_picture_contains_items = -27619;
  223.     layer_style_cannot_contain_a_face = -27618;
  224.     layer_glyph_shape_cannot_contain_nil_styles = -27617;        {  validation errors  }
  225.     object_wrong_type            = -27616;
  226.     shape_wrong_type            = -27615;
  227.     style_wrong_type            = -27614;
  228.     ink_wrong_type                = -27613;
  229.     transform_wrong_type        = -27612;
  230.     device_wrong_type            = -27611;
  231.     port_wrong_type                = -27610;                        {  validation cache errors  }
  232.     shape_cache_wrong_type        = -27609;
  233.     style_cache_wrong_type        = -27608;
  234.     ink_cache_wrong_type        = -27607;
  235.     transform_cache_wrong_type    = -27606;
  236.     port_cache_wrong_type        = -27605;
  237.     shape_cache_parent_mismatch    = -27604;
  238.     style_cache_parent_mismatch    = -27603;
  239.     ink_cache_parent_mismatch    = -27602;
  240.     transform_cache_parent_mismatch = -27601;
  241.     port_cache_parent_mismatch    = -27600;
  242.     invalid_shape_cache_port    = -27599;
  243.     invalid_shape_cache_device    = -27598;
  244.     invalid_ink_cache_port        = -27597;
  245.     invalid_ink_cache_device    = -27596;
  246.     invalid_style_cache_port    = -27595;
  247.     invalid_style_cache_device    = -27594;
  248.     invalid_transform_cache_port = -27593;
  249.     invalid_transform_cache_device = -27592;
  250.     recursive_caches            = -27591;                        {  validation shape cache errors  }
  251.     invalid_fillShape_ownerCount = -27590;
  252.     recursive_fillShapes        = -27589;                        {  validation memory block errors  }
  253.     indirect_memory_block_too_small = -27588;
  254.     indirect_memory_block_too_large = -27587;
  255.     unexpected_nil_pointer        = -27586;
  256.     bad_address                    = -27585;                        {  validation object errors  }
  257.     no_owners                    = -27584;
  258.     invalid_pointer                = -27583;
  259.     invalid_seed                = -27582;
  260.     invalid_frame_seed            = -27581;
  261.     invalid_text_seed            = -27580;
  262.     invalid_draw_seed            = -27579;
  263.     bad_private_flags            = -27578;                        {  validation path and polygon errors  }
  264.     invalid_vector_count        = -27577;
  265.     invalid_contour_count        = -27576;                        {  validation bitmap errors  }
  266.     bitmap_ptr_too_small        = -27575;
  267.     bitmap_ptr_not_aligned        = -27574;
  268.     bitmap_rowBytes_negative    = -27573;
  269.     bitmap_width_negative        = -27572;
  270.     bitmap_height_negative        = -27571;
  271.     invalid_pixelSize            = -27570;
  272.     bitmap_rowBytes_too_small    = -27569;
  273.     bitmap_rowBytes_not_aligned    = -27568;
  274.     bitmap_rowBytes_must_be_specified_for_user_image_buffer = -27567; {  validation bitmap image errors  }
  275.     invalid_bitImage_fileOffset    = -27566;
  276.     invalid_bitImage_owners        = -27565;
  277.     invalid_bitImage_rowBytes    = -27564;
  278.     invalid_bitImage_internal_flag = -27563;                    {  validation text errors  }
  279.     text_bounds_cache_wrong_size = -27562;
  280.     text_metrics_cache_wrong_size = -27561;
  281.     text_index_cache_wrong_size    = -27560;                        {  validation glyph errors  }
  282.     glyph_run_count_negative    = -27559;
  283.     glyph_run_count_zero        = -27558;
  284.     glyph_run_counts_do_not_sum_to_character_count = -27557;
  285.     glyph_first_advance_bit_set_not_allowed = -27556;
  286.     glyph_tangent_vectors_both_zero = -27555;                    {  validation layout errors  }
  287.     layout_run_length_negative    = -27554;
  288.     layout_run_length_zero        = -27553;
  289.     layout_run_level_negative    = -27552;
  290.     layout_run_lengths_do_not_sum_to_text_length = -27551;        {  validation picture errors  }
  291.     bad_shape_in_picture        = -27550;
  292.     bad_style_in_picture        = -27549;
  293.     bad_ink_in_picture            = -27548;
  294.     bad_transform_in_picture    = -27547;
  295.     bad_shape_cache_in_picture    = -27546;
  296.     bad_seed_in_picture            = -27545;
  297.     invalid_picture_count        = -27544;                        {  validation text face errors  }
  298.     bad_textLayer_count            = -27543;
  299.     bad_fillType_in_textFace    = -27542;
  300.     bad_style_in_textFace        = -27541;
  301.     bad_transform_in_textFace    = -27540;                        {  validation transform errors  }
  302.     invalid_matrix_flag            = -27539;
  303.     transform_clip_missing        = -27538;                        {  validation font cache errors  }
  304.     metrics_wrong_type            = -27537;
  305.     metrics_point_size_probably_bad = -27536;
  306.     scalar_block_wrong_type        = -27535;
  307.     scalar_block_parent_mismatch = -27534;
  308.     scalar_block_too_small        = -27533;
  309.     scalar_block_too_large        = -27532;
  310.     invalid_metrics_range        = -27531;
  311.     invalid_metrics_flags        = -27530;
  312.     metrics_maxWidth_probably_bad = -27529;
  313.     font_wrong_type                = -27528;
  314.     font_wrong_size                = -27527;
  315.     invalid_font_platform        = -27526;
  316.     invalid_lookup_range        = -27525;
  317.     invalid_lookup_platform        = -27524;
  318.     font_not_in_font_list        = -27523;
  319.     metrics_not_in_metrics_list    = -27522;                        {  validation view device errors  }
  320.     bad_device_private_flags    = -27521;
  321.     bad_device_attributes        = -27520;
  322.     invalid_device_number        = -27519;
  323.     invalid_device_viewGroup    = -27518;
  324.     invalid_device_bounds        = -27517;
  325.     invalid_bitmap_in_device    = -27516;                        {  validation color set errors  }
  326.     colorSet_wrong_type            = -27515;
  327.     invalid_colorSet_viewDevice_owners = -27514;
  328.     invalid_colorSet_colorSpace    = -27513;
  329.     invalid_colorSet_count        = -27512;                        {  validation color profile errors  }
  330.     colorProfile_wrong_type        = -27511;
  331.     invalid_colorProfile_flags    = -27510;
  332.     invalid_colorProfile_response_count = -27509;                {  validation internal backing store errors  }
  333.     backing_free_parent_mismatch = -27508;
  334.     backing_store_parent_mismatch = -27507;
  335.  
  336.                                                                 {  warnings about warnings  }
  337.     warning_stack_underflow        = -26999;
  338.     warning_stack_overflow        = -26998;
  339.     notice_stack_underflow        = -26997;
  340.     notice_stack_overflow        = -26996;
  341.     about_to_grow_heap            = -26995;
  342.     about_to_unload_objects        = -26994;                        {  result went out of range  }
  343.     map_shape_out_of_range        = -26950;
  344.     move_shape_out_of_range        = -26949;
  345.     scale_shape_out_of_range    = -26948;
  346.     rotate_shape_out_of_range    = -26947;
  347.     skew_shape_out_of_range        = -26946;
  348.     map_transform_out_of_range    = -26945;
  349.     move_transform_out_of_range    = -26944;
  350.     scale_transform_out_of_range = -26943;
  351.     rotate_transform_out_of_range = -26942;
  352.     skew_transform_out_of_range    = -26941;
  353.     map_points_out_of_range        = -26940;                        {  gave a parameter out of range  }
  354.     contour_out_of_range        = -26900;
  355.     index_out_of_range_in_contour = -26899;
  356.     picture_index_out_of_range    = -26898;
  357.     color_index_requested_not_found = -26897;
  358.     colorSet_index_out_of_range    = -26896;
  359.     index_out_of_range            = -26895;
  360.     count_out_of_range            = -26894;
  361.     length_out_of_range            = -26893;
  362.     font_table_index_out_of_range = -26892;
  363.     font_glyph_index_out_of_range = -26891;
  364.     point_out_of_range            = -26890;
  365.     profile_response_out_of_range = -26889;                        {  gxFont scaler warnings  }
  366.     font_scaler_no_output        = -26850;
  367.     font_scaler_fake_metrics    = -26849;
  368.     font_scaler_fake_linespacing = -26848;
  369.     font_scaler_glyph_substitution = -26847;
  370.     font_scaler_no_kerning_applied = -26846;                    {  might not be what you expected  }
  371.     character_substitution_took_place = -26845;
  372.     unable_to_get_bounds_on_multiple_devices = -26844;
  373.     font_language_not_found        = -26843;
  374.     font_not_found_during_unflattening = -26842;                { storage  }
  375.     unrecognized_stream_version    = -26841;
  376.     bad_data_in_stream            = -26840;
  377.  
  378.                                                                 {  nonsense data  }
  379.     new_shape_contains_invalid_data = -26700;
  380.     new_tag_contains_invalid_data = -26699;
  381.     extra_data_passed_was_ignored = -26698;
  382.     font_table_not_found        = -26697;
  383.     font_name_not_found            = -26696;                        {  doesn't make sense to do  }
  384.     unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve = -26695;
  385.     unable_to_draw_open_contour_that_starts_or_ends_off_the_curve = -26694;
  386.     cannot_dispose_default_shape = -26693;
  387.     cannot_dispose_default_style = -26692;
  388.     cannot_dispose_default_ink    = -26691;
  389.     cannot_dispose_default_transform = -26690;
  390.     cannot_dispose_default_colorProfile = -26689;
  391.     cannot_dispose_default_colorSet = -26688;
  392.     shape_direct_attribute_not_set = -26687;                    {  couldn't find what you were looking for  }
  393.     point_does_not_intersect_port = -26686;
  394.     cannot_dispose_non_font        = -26685;
  395.     face_override_style_font_must_match_style = -26684;
  396.     union_of_area_and_length_returns_area_only = -26683;
  397.     insufficient_coordinate_space_for_new_device = -26682;        {  other  }
  398.     shape_passed_has_no_bounds    = -26681;
  399.     tags_of_type_flst_removed    = -26680;
  400.     translator_not_installed_on_this_grafport = -26679;
  401.  
  402.     parameters_have_no_effect    = -25999;
  403.     attributes_already_set        = -25998;
  404.     caps_already_set            = -25997;
  405.     clip_already_set            = -25996;
  406.     color_already_set            = -25995;
  407.     curve_error_already_set        = -25994;
  408.     dash_already_set            = -25993;
  409.     default_colorProfile_already_set = -25992;
  410.     default_ink_already_set        = -25991;
  411.     default_transform_already_set = -25990;
  412.     default_shape_already_set    = -25989;
  413.     default_style_already_set    = -25988;
  414.     dither_already_set            = -25987;
  415.     encoding_already_set        = -25986;
  416.     face_already_set            = -25985;
  417.     fill_already_set            = -25984;
  418.     font_already_set            = -25983;
  419.     font_variations_already_set    = -25982;
  420.     glyph_positions_are_already_set = -25981;
  421.     glyph_tangents_are_already_set = -25980;
  422.     halftone_already_set        = -25979;
  423.     hit_test_already_set        = -25978;
  424.     ink_already_set                = -25977;
  425.     join_already_set            = -25976;
  426.     justification_already_set    = -25975;
  427.     mapping_already_set            = -25974;
  428.     pattern_already_set            = -25973;
  429.     pen_already_set                = -25972;
  430.     style_already_set            = -25971;
  431.     tag_already_set                = -25970;
  432.     text_attributes_already_set    = -25969;
  433.     text_size_already_set        = -25968;
  434.     transfer_already_set        = -25967;
  435.     translator_already_installed_on_this_grafport = -25966;
  436.     transform_already_set        = -25965;
  437.     type_already_set            = -25964;
  438.     validation_level_already_set = -25963;
  439.     viewPorts_already_set        = -25962;
  440.     viewPort_already_in_viewGroup = -25961;
  441.     viewDevice_already_in_viewGroup = -25960;
  442.     geometry_unaffected            = -25959;
  443.     mapping_unaffected            = -25958;
  444.     tags_in_shape_ignored        = -25957;
  445.     shape_already_in_primitive_form = -25956;
  446.     shape_already_in_simple_form = -25955;
  447.     shape_already_broken        = -25954;
  448.     shape_already_joined        = -25953;
  449.     cache_already_cleared        = -25952;
  450.     shape_not_disposed            = -25951;
  451.     style_not_disposed            = -25950;
  452.     ink_not_disposed            = -25949;
  453.     transform_not_disposed        = -25948;
  454.     colorSet_not_disposed        = -25947;
  455.     colorProfile_not_disposed    = -25946;
  456.     font_not_disposed            = -25945;
  457.     glyph_tangents_have_no_effect = -25944;
  458.     glyph_positions_determined_by_advance = -25943;
  459.     transform_viewPorts_already_set = -25942;
  460.     directShape_attribute_set_as_side_effect = -25941;
  461.     lockShape_called_as_side_effect = -25940;
  462.     lockTag_called_as_side_effect = -25939;
  463.     shapes_unlocked_as_side_effect = -25938;
  464.     shape_not_locked            = -25937;
  465.     tag_not_locked                = -25936;
  466.     profile_not_locked            = -25936;
  467.     lockProfile_called_as_side_effect = -25939;
  468.     disposed_dead_caches        = -25935;
  469.     disposed_live_caches        = -25934;
  470.     low_on_memory                = -25933;
  471.     very_low_on_memory            = -25932;
  472.     transform_references_disposed_viewPort = -25931;
  473.  
  474.  
  475. TYPE
  476.     gxGraphicsError                        = LONGINT;
  477.     gxGraphicsWarning                    = LONGINT;
  478.     gxGraphicsNotice                    = LONGINT;
  479. {$IFC FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE }
  480.     gxUserErrorProcPtr = ProcPtr;  { PROCEDURE gxUserError(status: gxGraphicsError; refcon: LONGINT); C; }
  481.  
  482.     gxUserWarningProcPtr = ProcPtr;  { PROCEDURE gxUserWarning(status: gxGraphicsWarning; refcon: LONGINT); C; }
  483.  
  484.     gxUserNoticeProcPtr = ProcPtr;  { PROCEDURE gxUserNotice(status: gxGraphicsNotice; refcon: LONGINT); C; }
  485.  
  486.     gxUserErrorUPP = UniversalProcPtr;
  487.     gxUserWarningUPP = UniversalProcPtr;
  488.     gxUserNoticeUPP = UniversalProcPtr;
  489.  
  490. CONST
  491.     uppgxUserErrorProcInfo = $000003C1;
  492.     uppgxUserWarningProcInfo = $000003C1;
  493.     uppgxUserNoticeProcInfo = $000003C1;
  494.  
  495. FUNCTION NewgxUserErrorProc(userRoutine: gxUserErrorProcPtr): gxUserErrorUPP;
  496.     {$IFC NOT GENERATINGCFM }
  497.     INLINE $2E9F;
  498.     {$ENDC}
  499.  
  500. FUNCTION NewgxUserWarningProc(userRoutine: gxUserWarningProcPtr): gxUserWarningUPP;
  501.     {$IFC NOT GENERATINGCFM }
  502.     INLINE $2E9F;
  503.     {$ENDC}
  504.  
  505. FUNCTION NewgxUserNoticeProc(userRoutine: gxUserNoticeProcPtr): gxUserNoticeUPP;
  506.     {$IFC NOT GENERATINGCFM }
  507.     INLINE $2E9F;
  508.     {$ENDC}
  509.  
  510. PROCEDURE CallgxUserErrorProc(status: gxGraphicsError; refcon: LONGINT; userRoutine: gxUserErrorUPP);
  511.     {$IFC NOT GENERATINGCFM}
  512.     {To be implemented:  Glue to move parameters into registers.}
  513.     {$ENDC}
  514.  
  515. PROCEDURE CallgxUserWarningProc(status: gxGraphicsWarning; refcon: LONGINT; userRoutine: gxUserWarningUPP);
  516.     {$IFC NOT GENERATINGCFM}
  517.     {To be implemented:  Glue to move parameters into registers.}
  518.     {$ENDC}
  519.  
  520. PROCEDURE CallgxUserNoticeProc(status: gxGraphicsNotice; refcon: LONGINT; userRoutine: gxUserNoticeUPP);
  521.     {$IFC NOT GENERATINGCFM}
  522.     {To be implemented:  Glue to move parameters into registers.}
  523.     {$ENDC}
  524.  
  525. TYPE
  526.     gxUserErrorFunction                    = gxUserErrorProcPtr;
  527.     gxUserWarningFunction                = gxUserWarningProcPtr;
  528.     gxUserNoticeFunction                = gxUserNoticeProcPtr;
  529. {$ENDC}
  530.  
  531. CONST
  532.     common_colors_not_initialized = 1048576;
  533.     no_open_picture                = 1048577;
  534.     picture_already_open        = 1048578;
  535.     no_open_poly                = 1048579;
  536.     poly_already_open            = 1048580;
  537.     no_open_region                = 1048581;
  538.     region_already_open            = 1048582;
  539.     no_active_picture            = 1048583;
  540.  
  541.     no_picture_drawn            = 4194304;
  542.     polygons_have_different_size_contours = 4194305;
  543.     graphic_type_cannot_be_specifed_by_four_values = 4194306;
  544.     graphic_type_cannot_be_specifed_by_six_values = 4194307;
  545.     point_expected                = 4194308;
  546.     line_or_rectangle_expected    = 4194309;
  547.     curve_expected                = 4194310;
  548.     graphic_type_does_not_contain_control_bits = 4194311;
  549.     request_exceeds_available_data = 4194312;
  550.     extra_data_unread            = 4194313;
  551.     no_variable_length_user_data_saved = 4194314;
  552.  
  553.     zero_length_string_passed    = 7340032;
  554.  
  555.                                                                 {  These levels tell how to validate routines.  Choose one.  }
  556.     gxNoValidation                = $00;                            {  no validation  }
  557.     gxPublicValidation            = $01;                            {  check parameters to public routines  }
  558.     gxInternalValidation        = $02;                            {  check parameters to internal routines  }
  559.                                                                 {  These levels tell how to validate types.  Choose one.  }
  560.     gxTypeValidation            = $00;                            {  check types of objects  }
  561.     gxStructureValidation        = $10;                            {  check fields of private structures  }
  562.     gxAllObjectValidation        = $20;                            {  check every object over every call  }
  563.                                                                 {  These levels tell how to validate memory manager blocks.  Choose any combination.  }
  564.     gxNoMemoryManagerValidation    = $0000;
  565.     gxApBlockValidation            = $0100;                        {  check the relevant block structures after each memory mgr. call  }
  566.     gxFontBlockValidation        = $0200;                        {  check the system gxHeap as well  }
  567.     gxApHeapValidation            = $0400;                        {  check the memory manager's gxHeap after every mem. call  }
  568.     gxFontHeapValidation        = $0800;                        {  check the system gxHeap as well  }
  569.     gxCheckApHeapValidation        = $1000;                        {  check the memory manager's gxHeap if checking routine parameters  }
  570.     gxCheckFontHeapValidation    = $2000;                        {  check the system gxHeap as well  }
  571.  
  572.  
  573. TYPE
  574.     gxValidationLevel                    = LONGINT;
  575.  
  576. CONST
  577.     no_draw_error                = 0;                            {  gxShape type errors  }
  578.     shape_emptyType                = 1;
  579.     shape_inverse_fullType        = 2;
  580.     rectangle_zero_width        = 3;
  581.     rectangle_zero_height        = 4;
  582.     polygon_empty                = 5;
  583.     path_empty                    = 6;
  584.     bitmap_zero_width            = 7;
  585.     bitmap_zero_height            = 8;
  586.     text_empty                    = 9;
  587.     glyph_empty                    = 10;
  588.     layout_empty                = 11;
  589.     picture_empty                = 12;                            {  general gxShape errors  }
  590.     shape_no_fill                = 13;
  591.     shape_no_enclosed_area        = 14;
  592.     shape_no_enclosed_pixels    = 15;
  593.     shape_very_small            = 16;
  594.     shape_very_large            = 17;
  595.     shape_contours_cancel        = 18;                            {  gxStyle errors  }
  596.     pen_too_small                = 19;
  597.     text_size_too_small            = 20;
  598.     dash_empty                    = 21;
  599.     start_cap_empty                = 22;
  600.     pattern_empty                = 23;
  601.     textFace_empty                = 24;
  602.     shape_primitive_empty        = 25;
  603.     shape_primitive_very_small    = 26;                            {  gxInk errors  }
  604.     transfer_equals_noMode        = 27;
  605.     transfer_matrix_ignores_source = 28;
  606.     transfer_matrix_ignores_device = 29;
  607.     transfer_source_reject        = 30;
  608.     transfer_mode_ineffective    = 31;
  609.     colorSet_no_entries            = 32;
  610.     bitmap_colorSet_one_entry    = 33;                            {  gxTransform errors  }
  611.     transform_scale_too_small    = 34;
  612.     transform_map_too_large        = 35;
  613.     transform_move_too_large    = 36;
  614.     transform_scale_too_large    = 37;
  615.     transform_rotate_too_large    = 38;
  616.     transform_perspective_too_large = 39;
  617.     transform_skew_too_large    = 40;
  618.     transform_clip_no_intersection = 41;
  619.     transform_clip_empty        = 42;
  620.     transform_no_viewPorts        = 43;                            {  gxViewPort errors  }
  621.     viewPort_disposed            = 44;
  622.     viewPort_clip_empty            = 45;
  623.     viewPort_clip_no_intersection = 46;
  624.     viewPort_scale_too_small    = 47;
  625.     viewPort_map_too_large        = 48;
  626.     viewPort_move_too_large        = 49;
  627.     viewPort_scale_too_large    = 50;
  628.     viewPort_rotate_too_large    = 51;
  629.     viewPort_perspective_too_large = 52;
  630.     viewPort_skew_too_large        = 53;
  631.     viewPort_viewGroup_offscreen = 54;                            {  gxViewDevice errors  }
  632.     viewDevice_clip_no_intersection = 55;
  633.     viewDevice_scale_too_small    = 56;
  634.     viewDevice_map_too_large    = 57;
  635.     viewDevice_move_too_large    = 58;
  636.     viewDevice_scale_too_large    = 59;
  637.     viewDevice_rotate_too_large    = 60;
  638.     viewDevice_perspective_too_large = 61;
  639.     viewDevice_skew_too_large    = 62;
  640.  
  641.  
  642. TYPE
  643.     gxDrawError                            = LONGINT;
  644. {$IFC FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE }
  645. FUNCTION GXGetShapeDrawError(source: gxShape): gxDrawError; C;
  646. PROCEDURE GXValidateAll; C;
  647. PROCEDURE GXValidateColorSet(target: gxColorSet); C;
  648. PROCEDURE GXValidateColorProfile(target: gxColorProfile); C;
  649. PROCEDURE GXValidateGraphicsClient(target: gxGraphicsClient); C;
  650. PROCEDURE GXValidateInk(target: gxInk); C;
  651. PROCEDURE GXValidateShape(target: gxShape); C;
  652. PROCEDURE GXValidateStyle(target: gxStyle); C;
  653. PROCEDURE GXValidateTag(target: gxTag); C;
  654. PROCEDURE GXValidateTransform(target: gxTransform); C;
  655. PROCEDURE GXValidateViewDevice(target: gxViewDevice); C;
  656. PROCEDURE GXValidateViewPort(target: gxViewPort); C;
  657. PROCEDURE GXValidateViewGroup(target: gxViewGroup); C;
  658. FUNCTION GXGetValidation: gxValidationLevel; C;
  659. PROCEDURE GXSetValidation(level: gxValidationLevel); C;
  660. FUNCTION GXGetValidationError(procedureName: CStringPtr; VAR argument: UNIV Ptr; VAR argumentNumber: LONGINT): LONGINT; C;
  661. {$ENDC}
  662. {$ALIGN RESET}
  663. {$POP}
  664.  
  665. {$SETC UsingIncludes := GXErrorsIncludes}
  666.  
  667. {$ENDC} {__GXERRORS__}
  668.  
  669. {$IFC NOT UsingIncludes}
  670.  END.
  671. {$ENDC}
  672.